home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 September / maximum-cd-2000-09.iso / Vampire the Masquerade / vampire_demo.exe / Codex.nob / EffectDiscPsychicProjection.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-22  |  1.2 KB  |  23 lines

  1. public class EffectDiscPsychicProjection extends Codex {
  2.    public void EndEffect(int projGuid) {
  3.       CodexActor _Projection = new CodexActor(projGuid);
  4.       ((CodexThing)_Projection).Remove();
  5.    }
  6.  
  7.    public void effectstarted(int actorGuid, int effectGuid, int creatorGuid, int duration) {
  8.       CodexActor _Projection = new CodexActor(actorGuid);
  9.       CodexActor _Caster = new CodexActor(creatorGuid);
  10.       _Projection.SetActorFlags(131072);
  11.       _Projection.SetActorTeam(_Caster.GetActorTeam());
  12.       ((Codex)this).CaptureThing(actorGuid);
  13.    }
  14.  
  15.    public void killed(int guid, int causeID, int captureID) {
  16.       this.EndEffect(guid);
  17.    }
  18.  
  19.    public void effectended(int actorGuid, int effectGuid, int creatorGuid, int reason) {
  20.       this.EndEffect(actorGuid);
  21.    }
  22. }
  23.